for(var i = i;i<=9;i++){
    var result = "";
    for(var j = 1;j<=i;j++){
        result += (i+" * "+j+" = "+i*j+(i*j>9?" ":"   "));
    }
    console.log(result);
}
